<?php

@$_SESSION['title'] = $_SESSION['title'];
@$_SESSION['subtitle'] = $_SESSION['subtitle'];

Print("
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\">
	<head>
		<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
		<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"$_SESSION[path_images]/structure/favicon.ico\"/> 
		<title>$_SESSION[title] | $_SESSION[subtitle]</title>
");

	/********************/
	/* Default includes */
	/********************/
		include ("$_SESSION[path_core]/includes.php");
					
		if (file_exists("$_SESSION[current_path]/includes.php"))
			include ("$_SESSION[current_path]/includes.php");
	
	/*******/
	/* CSS */
	/*******/
		imports_css("currentt.style");
		imports_css("currentt.theme1");
		imports_css("currentt.ie-sucks", "IE");

Print("
	</head>

	<body>
		<div id=\"container\">
    		<div id=\"header\">
        		<h2>$_SESSION[title] | <font size=2 color=gray>$_SESSION[subtitle]</font></h2>
				<div id=\"topmenu\">
					<ul>
");
					make_menu();
Print("
					</ul>
				</div>
			</div>
");
			if (file_exists("$_SESSION[current_path]/menu.php"))
			{
				Print("			
		  			<div id=\"top-panel\">
						<div id=\"panel\">
							<ul>
				");
					include ("$_SESSION[current_path]/menu.php");
				Print("
						</ul>
					</div>
				</div>
				");
			}
Print("
			<div id=\"wrapper\">
				<div id=\"content\">
");			
					include ("$_SESSION[current_path]/select.php");
					$date = date('Y');
Print("	
				</div>
			</div>
			<div id=\"footer\">
				<center>
					<small>
						Powered by <a href=\"http://www.opendevtools.net\">OpenDevTools - EnsKa PHP</a><br>
						Copyright &copy $date $_SESSION[title] All rights reserved.
");
						if (is_administrator(@$_SESSION['uid']))
							Print(" - <a href=\"./webadmin/\">[Administration]</a>");
Print("
					</small>
					<br>
					<!-- <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc-sa/2.0/fr/\" target=\"_blank\">
						<img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"http://i.creativecommons.org/l/by-nc-sa/2.0/fr/88x31.png\" />
					</a> -->
				</center>
			</div>
		</div>
	</body>
</html>

");
?>